#!/usr/bin/ksh

#######################################################
###Script to stop and start EMC SYMCLI stordaemons
#
# Christopher D. DeVille
#######################################################


START() {
/opt/emc/SYMCLI/V6.4.2/bin/stordaemon start storapid
/opt/emc/SYMCLI/V6.4.2/bin/stordaemon start storgnsd
/opt/emc/SYMCLI/V6.4.2/bin/stordaemon start storrdfd
/opt/emc/SYMCLI/V6.4.2/bin/stordaemon start storsrvd
/opt/emc/SYMCLI/V6.4.2/bin/stordaemon start storudbd
/opt/emc/SYMCLI/V6.4.2/bin/stordaemon start storevntd
/opt/emc/rm/client/bin/rc.irclient -start
}

STOP() {
/opt/emc/SYMCLI/V6.4.2/bin/stordaemon shutdown all
/opt/emc/rm/client/bin/rc.irclient -stop
}

STATUS() {
/opt/emc/SYMCLI/V6.4.2/bin/stordaemon list
echo
echo "IRCLIENT STATUS:"
/opt/emc/rm/client/bin/rc.irclient -list
echo
}

USAGE() {
echo "$0 ( start | stop | status )"
}


case $1 in

	start) START ;;
	stop) STOP ;;
	status) STATUS ;;
	*) USAGE ;;
esac
